//
//  ZpViewController.m
//  customTabBar
//
//  Created by kingboyrang on 2021/5/2.
//  Copyright © 2021 wulanzhou. All rights reserved.
//

#import "ZpViewController.h"

@interface ZpViewController ()

@end

@implementation ZpViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor blueColor];
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"设置" style:UIBarButtonItemStylePlain target:self action:@selector(goWeather)];
    
    // Do any additional setup after loading the view.
}

- (void)goWeather{
    
    BaseViewController *viewController = [[BaseViewController alloc] init];
    viewController.title = @"设置";
    [self.navigationController pushViewController:viewController animated:YES];
    
    /**
    UIViewController *viewController= [[UIViewController alloc] init];
    viewController.title = @"设置";
    //设置背景色，不然push会出现卡顿现象
    viewController.view.backgroundColor = [UIColor whiteColor];
    [self.navigationController pushViewController:viewController animated:YES];
     */
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
